package com.villaday.idf.util;

import android.text.Spannable;
import android.text.SpannableString;
import android.text.TextUtils;
import android.text.style.AbsoluteSizeSpan;
import android.text.style.RelativeSizeSpan;

public class ChangTVsizeUtils {

    public static Spannable changTVsize(String value,int position) {


        String price = "¥ " + value;;
        Spannable sp = new SpannableString(price);
        sp.setSpan(new AbsoluteSizeSpan(12, true), 0, position, Spannable.SPAN_INCLUSIVE_INCLUSIVE);
        sp.setSpan(new AbsoluteSizeSpan(19, true), position, price.length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
        return sp;
    }

}
